All Questions
422 questions
1vote
1answer
158views
Java program for calculating probabilities of die combinations in Yatzy
Yatzy Yatzy is a dice rolling game where players aim to get particular die combinations. This program counts probability of each such combinations. They are: All five ones, All five twos, Same for ...
4votes
1answer
265views
Tic-Tac-Toe Console Game in Java
I recently started learning Java and decided to create a project to practice. I developed a console-based tic-tac-toe game. I also wrote tests for some of the classes, not because they were necessary, ...
6votes
3answers
936views
A chess engine in Java: generating white pawn moves - take II
Intro This post continues the A chess engine in Java: generating white pawn moves. I was advised to choose between efficiency and type safety. Since this is my first attempt at a chess engine, I have ...
9votes
4answers
2kviews
A chess engine in Java: generating white pawn moves
(This post has now a continuation.) I decided to embark on implementing my own chess engine. The first (and perhaps most demanding) part of that endeavour is generating child states out of a given ...
1vote
0answers
62views
Principal Variation Search (PVS) for playing Connect Four in Java
This time, I have an implementation of PVS (Principal Variation Search) algorithm for playing the game of Connect Four. The repository holding the above .java file ...
3votes
2answers
228views
First tic tac toe game. want to see if valid or needs improvement
Just finished my first java class that taught me all the way up to oop and abstract classes. Decided to start some projects over the summer. Started with tic tac toe since it sounded fairly easy to do....
4votes
1answer
102views
Multithreaded Alpha-beta pruning for playing Connect Four in Java
Intro (The entire repository is in GitHub.) This time, I have parallelized the famous Alpha-beta pruning algorithm. The idea is that the parallel algorithm descends in a game tree (at least) 2 levels ...
4votes
3answers
289views
Connect4.java - The Connect Four game against an Alpha-beta pruning -based AI bot
I have this GitHub repository. It implements the command-line version of the Connect Four game. The AI bot is implemented via Alpha-beta pruning. Code ...
1vote
0answers
63views
WikiGameKillerFX.java - a JavaFX GUI program for solving the Wiki Game instances
I have this GitHub repository. In Wiki Game, players agree on random source and target articles, and attempt to navigate from the source to the target using least number of links. If there is a tie, ...
5votes
2answers
290views
2048 game in Java
I am a beginner learning Java, and I coded a command line version of the game 2048 for practice. Any feedback, especially regarding best practices, object-oriented principles, and tidying up the code ...
3votes
2answers
124views
Text based Java game "Battle Arena"
This is my first java program. I'm coming from a python background. This is a text based combat arena game. Are there any ways I could better implement the overall code structure? How might I improve ...
1vote
0answers
62views
Video Poker with luck modifier
While grinding for coins on the GTA San Andreas casino poker machines I started to wonder how exactly one might implement a luck modifier to a video poker game without it being completely obvious to ...
3votes
1answer
253views
Simple blackjack program in Java
I wrote this blackjack game for my APCSA class (already submitted) and was wondering if anyone had feedback on what parts of it are improperly written. My main concern is the fact that I am printing ...
3votes
1answer
130views
"2048" game in JavaFX
I wrote my first code in Java and I need constructive criticism and code review. This is an implementation of the well-known "2048" sliding-blocks game. ...
4votes
1answer
116views
Basic CLI BlackJack Game in Java
I am looking to see which aspects of this code could use improvement. In both design, and basic implementation and coding. I'm using IntelliJ and Java SE 20. ...